package com.gem.service.impl;

import com.gem.entity.SysUserRole;
import com.gem.mapper.SysUserRoleMapper;
import com.gem.service.SysUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author 刘聪
 * Created  on 2021/5/25
 */
public class SysUserRoleServiceImpl implements SysUserRoleService {
    @Autowired
    private SysUserRoleMapper userRoleMapper;

    @Override
    public List<SysUserRole> listByUserId(Integer userId) {
        return userRoleMapper.listByUserId(userId);
    }
}
